Mon 05/26/2014
19:47:32.27

for /f "tokens=1 delims=/" %j in ("%date%") do set d1=%j
for /f "tokens=2 delims=/" %j in ("%date%") do set d2=%j
for /f "tokens=3 delims=/" %j in ("%date%") do set d3=%j
for /f "tokens=1 delims=:" %j in ("%time%") do set t1=%j
for /f "tokens=2 delims=:" %j in ("%time%") do set t2=%j
for /f "tokens=3 delims=:" %j in ("%time%") do set t3=%j

set datetime=%d1%%d2%%d3%%t1%%t2%%t3%
for /f "tokens=1 delims=." %j in ("%datetime%") do set datetime=%j
for /f "tokens=2 delims= " %j in ("%datetime%") do set datetime=%j
echo %datetime%